VERSION 5.00
Begin VB.Form SaveDemoForm 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   12000
   LinkTopic       =   "Form1"
   ScaleHeight     =   9000
   ScaleWidth      =   12000
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VB.CommandButton SaveDemo_Button 
      Caption         =   "Save and Continue"
      BeginProperty Font 
         Name            =   "Abadi MT Condensed Light"
         Size            =   20.25
         Charset         =   0
         Weight          =   300
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1095
      Left            =   7860
      TabIndex        =   3
      Top             =   2040
      Width           =   2055
   End
   Begin VB.CommandButton Clear_Button 
      Caption         =   "Clear"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   2
      Top             =   5160
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VB.CommandButton Next_Button 
      Caption         =   "Next"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   1
      Top             =   6360
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VB.CommandButton Cancel_Button 
      BackColor       =   &H008080FF&
      Caption         =   "Cancel"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   7560
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      BackColor       =   &H00FFFFFF&
      BackStyle       =   0  'Transparent
      Caption         =   $"SaveDemoForm.frx":0000
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1875
      Left            =   2100
      TabIndex        =   4
      Top             =   1680
      Width           =   5235
   End
   Begin VB.Shape Shape2 
      BackColor       =   &H00C0FFFF&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderWidth     =   2
      Height          =   2895
      Left            =   1440
      Shape           =   4  'Rounded Rectangle
      Top             =   1200
      Width           =   8955
   End
End
Attribute VB_Name = "SaveDemoForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
   Next_Button.Enabled = False
End Sub

Private Sub Next_Button_Click()
'   PrevTestedForm.Show
'   Unload Me
End Sub

Private Sub SaveDemo_Button_Click()

   'Save the demographic information in the database
   CnUser.Open ConnectString
   Cmd.CommandText = "UPDATE client SET " & _
                     "COUPTYPE = '" & COUPTYPE & "', " & _
                     "COUNCODE = '" & COUNCODE & "', " & _
                     "AGE = '" & Val(AGE) & "', " & _
                     "RESID = '" & RESCLASS & "', " & _
                     "GROUPSES = '" & GROUPSES & "', " & _
                     "EMPLOYED = '" & EMPLOYED & "', " & _
                     "OCCUPAT = '" & OCCUPAT & "', " & _
                     "EDUEXPE = '" & EDUEXPE & "', " & _
                     "MARSTAT = '" & MARSTAT & "', " & _
                     "MARTYPE = '" & MARTYPE & "', " & _
                     "MARHIST = '" & MARHIST & "', " & _
                     "KNOWUS1 = '" & KNOWUS1 & "', " & _
                     "KNOWUS2 = '" & KNOWUS2 & "', " & _
                     "KNOWUS3 = '" & KNOWUS3 & "', " & _
                     "KNOWUS4 = '" & KNOWUS4 & "', " & _
                     "KNOWUS5 = '" & KNOWUS5 & "', " & _
                     "KNOWUS6 = '" & KNOWUS6 & "', " & _
                     "KNOWUS7 = '" & KNOWUS7 & "', " & _
                     "KNOWUS8 = '" & KNOWUS8 & "', " & _
                     "KNOWUS98 = '" & KNOWUS98 & "', " & _
                     "KNOWUS99 = '" & KNOWUS99 & "', " & _
                     "REFERBY = '" & REFERBY & "', " & _
                     "REASHERE = '" & REASHERE & "' " & _
                     "WHERE VISITID = " & VISITID
   Cmd.CommandType = adCmdText
   Cmd.ActiveConnection = CnUser
   Cmd.Execute
   CnUser.Close
   
   'Next_Button.Enabled = True
   PrevTestedForm.Show
   Unload Me

End Sub

